{% if parametersets %}
{% for parameterset in parametersets %}
	<div class="datafile_parameters">
	<p><strong><em>{{parameterset.schema}}</strong></em></p>
	{% if has_write_permissions %}{% if not experiment.public %}<p><a href="{% url tardis.tardis_portal.views.edit_datafile_par parameterset.id %}"
	 class="jqModalDf{{parameterset.id}}">[Edit Metadata]</a></p>{% endif %}{% endif %}
    {% autoescape off %}
	{% for parameter in parameterset.datafileparameter_set.all %}
		<li><strong>{{ parameter.name.full_name }}: </strong>
		  {{ parameter.get }}
		</li>
	{% endfor %}
    {% endautoescape %}
	</div>
	<br/><br/>
	<script type="text/javascript">
	$('#jqmAlertDf{{parameterset.id}}').die();
	$('#jqmAlertDf{{parameterset.id}}').jqm({
	  trigger: '.jqModalDf{{parameterset.id}}',
	  ajax: '@href',
	  target: '#jqmAlertContentdatafile{{parameterset.id}}',
	  overlay: 0
	  });
	</script>
	<div class="jqmAlert" id="jqmAlertDf{{parameterset.id}}">

		<div class="jqmAlertWindow">
		    <div class="jqmAlertTitle clearfix">
		    <h1>Edit Parameters</h1><a href="#" class="jqmClose"><em>Close</em></a>
		  </div>

		  <div class="jqmAlertContent" id="jqmAlertContentdatafile{{parameterset.id}}">
		  <p>Please wait... <img src="/site_media/images/busy.gif" alt="loading" /></p>
		  </div>
		</div>
	</div>
{% endfor %}
{% else %}
	There is no metadata for this file
{% endif %}
